import Vue from 'vue';
import App from './app.vue';
import vuex from './store/index';
import router from './router/index';
import Axios from 'axios';
// import Antd from 'ant-design-vue';
// import 'ant-design-vue/dist/antd.css';
import VueCookies from 'vue-cookies';

const root = document.createElement('div');
document.body.appendChild(root);

// Vue.use(Antd);

// Vue.use(axios);
Vue.prototype.axios = Axios;
Vue.use(VueCookies);
// 设置axios拦截器
Axios.interceptors.response.use(function (response) {
    if(response.status == '1') {
        return response;
    }
})

new Vue({
    vuex,
    router,
    render: (h) => h(App)
}).$mount(root);